<div class="widget-box">
<div class="widget-header widget-header-blue widget-header-flat">
	<h4 class="lighter"><?php echo $model->isNewRecord ? 'Create States' : 'Update States'?></h4>
</div>
<div class="widget-body" style="padding-top: 20px;">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'states-form',
	'enableAjaxValidation'=>false,
	'htmlOptions'=>array('class'=>'form-horizontal'),
)); ?>

	<?php echo $form->errorSummary($model, null, null, array('class'=>'alert alert-error')); ?>

	<div class="control-group">
		<?php echo $form->labelEx($model,'name', array('class'=>'control-label')); ?>
		<div class="controls">
			<?php echo $form->textField($model,'name'); ?>
		</div>
	</div>

	<div class="control-group">
		<?php echo $form->labelEx($model,'abbr', array('class'=>'control-label')); ?>
		<div class="controls">
			<?php echo $form->textField($model,'abbr',array('size'=>2,'maxlength'=>2)); ?>
		</div>
	</div>

	<div class="form-actions" style="background-color: white;">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save', array('class'=>'btn btn-primary')); ?>
	</div>

<?php $this->endWidget(); ?>

</div>
</div><!-- form -->